<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.prime.com.tr/ui" 
                template="/pages/template.xhtml" >

    <ui:define name="screen">

        <h:form>

            <p:panel header="Principal">

                <p:menu type="sliding" backLabel="Voltar"  >  

                    <p:submenu label="Administração">  

                        <p:submenu label="Usuário" icon="ui-icon ui-icon-person"> 
                            <p:menuitem value="Cadastrar" ajax="false" icon="ui-icon ui-icon-disk" action="cadastroUsuario" /> 
                            <p:separator/>

                            <p:menuitem value="Consultar" ajax="false" icon="ui-icon ui-icon-search" action="consultaUsuario" />
                            <p:separator/>

                            <p:menuitem value="Alterar Senha" ajax="false" icon="ui-icon ui-icon-key" action="alterarSenha" />
                            <p:separator/>

                        </p:submenu>
                        <p:separator/>
                        <p:submenu label="Componente" icon="ui-icon ui-icon-person">
                            <p:menuitem value="Cadastrar" ajax="false" icon="ui-icon ui-icon-disk" action="cadastroComponente" /> 
                            <p:separator/>

                            <p:menuitem value="Consultar" ajax="false" icon="ui-icon ui-icon-search" action="consultaComponente" />
                            <p:separator/>

                        </p:submenu>
                        <p:separator/>
                        <p:submenu label="Permissão" icon="ui-icon ui-icon-person">
                            <p:menuitem value="Cadastrar" ajax="false" icon="ui-icon ui-icon-disk" action="cadastroPermissao" /> 
                            <p:separator/>

                            <p:menuitem value="Consultar" ajax="false" icon="ui-icon ui-icon-search" action="consultaPermissao" />
                            <p:separator/>

                        </p:submenu>
                        <p:separator/>
                    </p:submenu> 
                    <p:separator/>
                    
                </p:menu>   

            </p:panel>

        </h:form> 

    </ui:define>

</ui:composition>